//
//@File    :	11.3_usetime0.cpp
//@Time    :	2021/08/29 09:00:55
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using the first draft of the Time class
//

//complie usetime0.cpp and mytime0.cpp together

#include <iostream>
#include "11.1_mytime0.h"

int main()
{
    using std::cout;
    using std::endl;
    Time planning;
    Time coding(2,40);
    Time fixing(5,55);
    Time total;

    cout<<"planning time = ";
    planning.Show();
    cout<<endl;

    cout<<"coding time = ";
    coding.Show();
    cout<<endl;

    cout<<"fixing time = ";
    fixing.Show();
    cout<<endl;

    total=coding.Sum(fixing);
    cout<<"coding.Sum(fixing) = ";
    total.Show();
    cout<<endl;    
    system("pause");
    return 0;
}